package com.hsmpay.mobile.action.other;

import com.hsmpay.common.util.DateConvertUtil;
import com.hsmpay.mobile.action.base.MobileBaseAction;
import org.springframework.stereotype.Controller;

import java.util.Date;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * 千48查询 action
 *
 * @author 颜铃璋
 * @date 2013-8-27
 */
@Controller("systemUtilAction")
public class SystemUtilAction extends MobileBaseAction {
    private static final long serialVersionUID = 5022042655986869814L;

    /**
     * 获取系统时间   http://localhost/proOneMobile/systemUtil/systemUtilAction_getSystemDate.action
     *
     * @return
     * @throws Exception
     */
    public String getSystemDate() throws Exception {

        String dateStr = DateConvertUtil.dateString(new Date(), "yyyyMMddHHmmss");

        Map<String, Object> result = new LinkedHashMap<String, Object>();
        result.put("reqCode", "0000");
        result.put("reqMsg", "获取系统时间！");
        result.put("time", dateStr);
        sendAppMsg(result);
        return null;
    }
}
